/*
package com.cimstech.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement()
public class Node {
    private boolean isLeaf = false;
    private String name;
    private String id;
    private String type;

    public Node() {
        super();
    }

    public Node(boolean isLeaf, String name, String id, String type) {
        super();
        this.isLeaf = isLeaf;
        this.name = name;
        this.id = id;
        this.type = type;
    }

    @XmlElement(name = "isLeaf")
    public boolean isIsParent() {
        return !isLeaf;
    }

    @XmlElement(name = "icon")
    public String getIcon() {
        return "icons/" + type + ".png";
    }

    @XmlElement(name = "name")
    public String getName() {
        return name;
    }

    @XmlElement(name = "id")
    public String getId() {
        return id;
    }

    @XmlElement(name = "type")
    public String getType() {
        return type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setType(String type) {
        this.type = type;
    }
}
*/
package com.cimstech.model;

public class Node {
    boolean isLeaf = false;
    String name;
    String id;
    String type;

    public Node() {
        super();
    }

    public Node(boolean isLeaf, String name, String id, String type) {
        super();
        this.isLeaf = isLeaf;
//        this.name = name;
        setId(id);
        this.type = type;
        this.name = "<font class='type'>" + type + "</font>" + name;
    }

    public boolean isIsParent() {
        return !isLeaf;
    }

//    public String getIcon() {
//        return "icons/" + type + ".png";
//    }

    // public boolean isLeaf() {
    // return isLeaf;
    // }
    //
    // public void setLeaf(boolean isLeaf) {
    // this.isLeaf = isLeaf;
    // }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
